//
//  HomePageHeadView.m
//  JiuLe
//
//  Created by xcq on 15/11/3.
//  Copyright © 2015年 Fine. All rights reserved.
//

#import "HomePageHeadView.h"
#define kCurrenStatus @"当前状态："
@interface HomePageHeadView()

@end

@implementation HomePageHeadView

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self == [super initWithCoder:aDecoder]) {
        [self setUserIconRadiu];
        _userName.hidden = YES;
        _userIcon.hidden = YES;
        _connectionStatusStr.text = @"未连接";
        _PILabel.text = @"----";
        _HRLabel.text = @"----";
        _ExerciseLabel.text = @"0";
        _sleepModel.text = @"----";
    }
    return self;
}

- (void)setUserIconRadiu {
    _userIcon.layer.cornerRadius = CGRectGetWidth(_userIcon.frame) / 2;
    _userIcon.layer.borderColor = [UIColor whiteColor].CGColor;
    _userIcon.layer.borderWidth = 1.f;
    _userIcon.layer.masksToBounds = YES;
    
}

@end
